package com.yang.service.Impl;

import com.yang.mapper.SysFieldMapper;
import com.yang.pojo.SysField;
import com.yang.service.SysFieldService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("sysFieldService")
public class SysFieldServiceImpl implements SysFieldService {

    @Resource
    SysFieldMapper sysFieldMapper;

    @Override
    public int inset(SysField sysField) {
        return sysFieldMapper.insert(sysField);
    }

    @Override
    public List<SysField> findByFileId(Integer fileId) {
        return sysFieldMapper.findByFileId(fileId);
    }
}
